/*
 * @Author: zhoulf
 * @FilePath: /dg-refine-web/src/main.js
 * @Date: 2022-12-02 16:52:30
 * @LastEditors: fastfan
 * @LastEditTime: 2022-12-26 15:42:12
 * @Description:
 */
import Vue from 'vue'
import './core/use'
import bootstrap from './core/bootstrap'
import router from '@/router'
import App from './App'
import store from '@/store'
import 'normalize.css/normalize.css'
import './styles/index.scss'
import Map from '@hn/hncp-leaflet-map'
import {
  initPermissionInstance,
  AuthType
} from '@/permission/permissionFactory'
import '@/icons'

Vue.config.productionTip = false
Vue.prototype.$Map = Map
// 默认使用三中心的权限控制
initPermissionInstance(AuthType.TC)

const init = function () {
  // eslint-disable-next-line no-new
  new Vue({
    el: '#app',
    router,
    created: bootstrap,
    store,
    render: (h) => h(App)
  })
}
init()
